<?php
include_once("Classes/MediaItemTemplateAudio.php");

class MediaItemTemplateFactory {
	public static function createMediaItemTemplate($type) {
		switch($type) {
			case "audio":
				return new MediaItemTemplateAudio("/Media/templates/MediaItemTemplateAudio.htm");
				break;
			case "audionew":
				return new MediaItemTemplateAudio("/Media/templates/MediaItemTemplateAudioNew.htm");
				break;
			default:
				return new Template();
				break;
		}
	}
}
?>